package com.piik.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.piik.common.utils.PageUtils;
import com.piik.mall.product.entity.AttrEntity;
import com.piik.mall.product.vo.AttrGroupRelationVO;
import com.piik.mall.product.vo.AttrResponseVO;
import com.piik.mall.product.vo.AttrVO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author dpd
 * @email sunlightcs@gmail.com
 * @date 2022-09-27 14:16:36
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    PageUtils queryPage(Map<String, Object> params, String attrType, Long catelogId);

    void save(AttrVO vo);

    AttrResponseVO getAttrInfo(Long attrId);


    void updateBaseAttr(AttrVO vo);

    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

